import request from '@/utils/request'

// 查询厂站信息列表
export function listDispatchPlantStations(query) {
  return request({
    url: '/system/dispatchPlantStations/list',
    method: 'get',
    params: query
  })
}

// 查询厂站信息详细
export function getDispatchPlantStations(plantStationsId) {
  return request({
    url: '/system/dispatchPlantStations/' + plantStationsId,
    method: 'get'
  })
}

// 新增厂站信息
export function addDispatchPlantStations(data) {
  return request({
    url: '/system/dispatchPlantStations',
    method: 'post',
    data: data
  })
}

// 修改厂站信息
export function updateDispatchPlantStations(data) {
  return request({
    url: '/system/dispatchPlantStations',
    method: 'put',
    data: data
  })
}

// 删除厂站信息
export function delDispatchPlantStations(plantStationsId) {
  return request({
    url: '/system/dispatchPlantStations/' + plantStationsId,
    method: 'delete'
  })
}
